package com.stxx.stiot2.event;

import com.stxx.stiot2.event.dto.C2pMsg;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.Component;
import org.noear.solon.core.event.EventListener;
import org.noear.solon.net.websocket.WebSocket;
import java.util.Map;


/**
 * @author Fuzhenlei
 * @date 2024/12/17 17:48
 */
@Slf4j
@Component
public class CommandListener implements EventListener<C2pMsg> {
    @Override
    public void onEvent(C2pMsg event) {
        WebSocket socket = event.getWsSession().getWebSocket();
        log.info(event.getCommand());
    }


}
